﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RoboRace_Shared
{
    public interface IRegister
    {
        ProgramCard ActiveCard { get; set; }
        Boolean IsLocked { get; set; }
    }

    [Serializable]
    public class Register : IRegister
    {
        private ProgramCard _curCard;
        private Boolean _isLocked;

        
        public Register()
        {
            _isLocked = false;
        }

        public ProgramCard ActiveCard { get { return _curCard; } set { _curCard = value; } }
        public Boolean IsLocked { get { return _isLocked; } set { _isLocked = value; } }
    }
}
